php keep only letters and numbers

53

php keep only letters and numbers -

$result = preg_replace("/[^a-zA-Z0-9]+/", "", $s);

Comments

Submit
0 Comments